package com.wyh.domain.dto.groupOne.projectaboutdto.utils;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.Size;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)
@ApiModel(value = "Buildingunits对象", description = "资源信息实体")
@TableName("buildingunits表")
public class BuildingUpdate{
    @ApiModelProperty(value = "id",required = true)
    private Integer id;

    @Size(max = 15 ,min = 2, message = "名称2-15字符")
    @ApiModelProperty(value = "资源名称",required = true)
    private String name;

    @ApiModelProperty(value = "状态",required = true)
    private Integer state;
}
